from dataclasses import dataclass


def get_cpu_stress_test_data(start: bool = False, thread_num: int = 1) -> dict:
    return {'name': 'stress', 'type': 'cpu', 'params': {'start': start, 't_num': thread_num}}


def get_mem_stress_test_data(clear: bool = True, add_mem: int = 0) -> dict:
    return {'name': 'stress', 'type': 'mem', 'params': {'clear': clear, 'add_mem': add_mem}}


def get_connect_data() -> dict:
    return {'name': 'connect', 'type': '', 'params': {}}
